package Compents
{
	import flash.display.Sprite;
	import mx.controls.DataGrid;
	public class EnginxDataGrid extends DataGrid
	{
		public var rowColorFunction:Function;
		public function EnginxDataGrid()
		{
			super();
		}
		
		override protected function drawRowBackground(s:Sprite, rowIndex:int, y:Number, height:Number, color:uint, dataIndex:int):void{
			var item : Object;
			if(dataProvider == null) return;
			if(dataIndex < dataProvider.length)
				item = dataProvider[dataIndex];
			if(item){
				//color = uint;//rowColorFunction(item, rowIndex, dataIndex, color);
			}
			super.drawRowBackground(s, rowIndex, y, height, color, dataIndex);
		}
	}

}